package net.qhzw.vip.qiyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.dto.DeliveryManDto;
import net.qhzw.vip.qiyu.entity.DeliveryMan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeliveryManMapper extends BaseMapper<DeliveryMan> {


    DeliveryMan selectByAreaName(String pickupPointName);


    List<DeliveryManDto> selectDeliveryManDto(@Param("areaIds") List<Long> areaIds);


    DeliveryMan selectInfo(Long id);

    List<DeliveryMan> selectDetailedAddrByIds(@Param("ids") List<Long> ids);


    boolean bindMerchants(@Param("deliveryMan") DeliveryMan deliveryMan);


    int reset(Long shopId);


}